package com.whopxx.service;


import com.whopxx.domain.entity.FileUpload;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.UnsupportedEncodingException;

/**
* @author HUAWEI
* @description 针对表【lol_file_upload(文件上传表)】的数据库操作Service
* @createDate 2024-07-26 17:51:04
*/
public interface FileUploadService extends IService<FileUpload> {

    /**
     * 文件上传
     * @param file
     * @return
     */
    Long upload(MultipartFile file);
    Long upload(File file);

    /**
     * 下载文件
     *
     * @param fileId
     * @param response
     */
    void download(Long fileId, HttpServletResponse response);
}
